<?php
use app\models\Mall;
use yii\helpers\Url;
$web = Url::base();
$integral_unit = \app\models\Mall::getCurrentInstitutionIntegralUnit();
$institution_code = Mall::getCurrentInstitutionCode();
foreach ($items as $item) {
    ?>
    <a href="goods-detail?goods_code=<?= $item['code'] ?>&institution_code=<?= $institution_code ?>">
        <div class="content-list">
            <div class="content-img f-l">
                <img data-original="<?= $item['goods_image'] ? $item['goods_image'].'@150w': $web.'/images/mall-m/goods-list-nothing.jpg'?>"/>
            </div>
            <div class="content-title f-r">
                <div class="title">
                    <p class="crossborder">
                        <?php
                            if($item['is_crossborder']=='1'){
                        ?>
                                <span>跨境</span>
                        <?php
                            }
                        ?>

                        <?=$item['name'] ?></p>

                </div>
                <div class="contener">
                    <p class="integral f-l"><?= $integral_unit ?>：
                        <span><?= intval($item['selling_integral']) ?></span>
                    </p>
                    <?php
                    if($item['is_activity']=='1'){
                        ?>
                        <p class="integral-1 f-l">原价：
                            <span><s><?= intval($item['old_price']) ?><?= $integral_unit ?></s></span>
                        </p>
                        <?php
                    }
                    ?>

                </div>
            </div>
        </div>
    </a>
    <?php
}
?>